package demo1;

import entity.People;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-05-05
 * Time: 7:33
 */
@Controller
public class PeopleController1 {
    @Autowired
    private People people;

    public People getPeople() {
        People people1 = people;
        System.out.println("People 原本 name :" + people.getName());
        people.setName("lisi");// 修改了姓名
        return people;
    }
}
